package com.zhuoli.service.springboot.mybatis.pagehelper.common;

/**
 * @Author: zhuoli
 * @Date: 2018/8/20 14:34
 * @Description:
 */
public enum RelationEnum {
    IS_NULL(0, "IsNull"),
    IS_NOT_NULL(1, "IsNotNull"),
    EQUAL_TO(2, "EqualTo"),
    NOT_EQUAL_TO(3, "NotEqualTo"),
    GREATER_THAN(4, "GreaterThan"),
    GREATER_THAN_OR_EQUAL_TO(5, "GreaterThanOrEqualTo"),
    LESS_THAN(6, "LessThan"),
    LESS_THAN_OR_EQUAL_TO(7, "LessThanOrEqualTo"),
    IN(8, "In"),
    NOT_IN(9, "NotIn"),
    BETWEEN(10, "Between"),
    NOT_BETWEEN(11, "NotBetween"),
    LIKE(12, "Like");

    private int code;
    private String value;

    RelationEnum(int code, String value) {
        this.code = code;
        this.value = value;
    }

    public int getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }
}
